package com.kw.sqlsession;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

/**
 * Created by Medivh on 2020/5/7.
 * 愿我出走半生,归来仍是少年
 */
public interface SqlSession {
    public <E> List<E> selectList(String statementId,Object ...params) throws IllegalAccessException, IntrospectionException, InstantiationException, NoSuchFieldException, SQLException, InvocationTargetException, ClassNotFoundException;



    public <T> T selectOne(String statementId,Object ...params) throws ClassNotFoundException, SQLException, IllegalAccessException, NoSuchFieldException, InvocationTargetException, IntrospectionException, InstantiationException;

    //为Dao曾生成代理实现类
    public <T> T getMapper(Class<?> mapperClass);
}
